﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="load_Event.aspx.cs" Inherits="SQT.tracnghiem.Ajax.ASP.Events.load_Event" %>
<%@ Import Namespace="DataAccess" %>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<body>
    <%var get_events = from p in new TblEventController().FetchAll() orderby p.Id descending select p; %>
    <div id="dhbc" class="game-content w3-row">
        <div class="game-left w3-third w3-border-right w3-border-teal">
            <header class="w3-center w3-padding-4">
                <label>Danh sách sự kiện</label>
            </header>
            <div class="w3-padding">
                <ul id="game-question-list" class="game-question-list w3-ul w3-light-grey">
                    <%foreach (TblEvent events in get_events)
                        { %>
                    <li onclick="event_edit(<%=events.Id %>)"><%=events.Name %></li>
                    <%} %>
                </ul>
            </div>
            <div class="w3-padding-4 w3-center">
                <a onclick="event_add()" class="game-add-question-btn w3-btn w3-teal">Thêm sự kiện</a>
            </div>
        </div>
        <div class="game-right w3-twothird">
            <div id="event-add-form" style="display: none">
            </div>
            <div id="event-edit-form" class="game-edit-question-form">
            </div>
        </div>
    </div>
</body>
</html>
